﻿using System;
using System.Web.UI.WebControls;
using BLL;

public partial class StatisticData_TestTypeStatistic_EI_Month : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        BindPP();
    }

    protected void BindPP()
    {
        TestItem_PP pp = new TestItem_PP();
        DateTime var_time = DateTime.Parse(this.TextBox2.Text + " 00:00:00");
        string time = var_time.Year.ToString("00") + var_time.Month.ToString("00");
        this.GridView1.DataSource = pp.GetMonth_EI(time);
        this.GridView1.DataBind();
    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        this.GridView1.PageIndex = e.NewPageIndex;
        BindPP();
    }
}
